Socket
Socket
Sign inDemoInstall

babel-plugin-syntax-trailing-function-commas

Package Overview
Dependencies
Maintainers
6
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-syntax-trailing-function-commas

Compile trailing function commas to ES5


Version published
Weekly downloads
4.9M
decreased by-1.33%
Maintainers
6
Weekly downloads
 
Created

What is babel-plugin-syntax-trailing-function-commas?

The babel-plugin-syntax-trailing-function-commas npm package allows Babel to parse trailing commas in function parameter lists and calls. This is particularly useful for improving the readability and maintainability of code by allowing developers to add new parameters without modifying the last line of the existing parameters.

What are babel-plugin-syntax-trailing-function-commas's main functionalities?

Parsing trailing commas in function parameters

This feature enables the parsing of trailing commas in function parameter lists, which can help in minimizing diff outputs when new parameters are added.

function example(a, b, c,) {\n  return a + b + c;\n}

Parsing trailing commas in function calls

This feature allows for trailing commas in function calls, aligning with the enhanced syntax capabilities for array and object literals.

example(1, 2, 3,);
0

Keywords

FAQs

Package last updated on 20 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc